package com.ruoyi.shanghuliebiao2.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 收支明细对象 che_statement
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class CheStatement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 核销时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verificationTime;

    /** 收支类型 */
    @Excel(name = "收支类型")
    private Long type;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 提现编号 */
    @Excel(name = "提现编号")
    private Long drawalId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderId;


    @Transient
    private List<CheDrawal> drawal;

    public List<CheDrawal> getDrawal() {
        return drawal;
    }

    public void setDrawal(List<CheDrawal> drawal) {
        this.drawal = drawal;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setVerificationTime(Date verificationTime) 
    {
        this.verificationTime = verificationTime;
    }

    public Date getVerificationTime() 
    {
        return verificationTime;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setDrawalId(Long drawalId) 
    {
        this.drawalId = drawalId;
    }

    public Long getDrawalId() 
    {
        return drawalId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("verificationTime", getVerificationTime())
            .append("type", getType())
            .append("money", getMoney())
            .append("drawalId", getDrawalId())
            .append("orderId", getOrderId())
            .toString();
    }
}
